package com.lening.collect.pojo;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author 杨军
 * @since 2024-05-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_meter")
@ApiModel(value="Meter对象", description="")
public class Meter implements Serializable {
    @DateTimeFormat(pattern = "yyyy-MM-dd")

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "抄表账单")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "小区的外键")
    private Integer rId;


    @ApiModelProperty(value = "收费类型")
    private Integer tId;

    @ApiModelProperty(value = "计量单位")
    private String unit;

    @ApiModelProperty(value = "单价")
    private BigDecimal price;

    @ApiModelProperty(value = "总价")
    private BigDecimal prices;

    @ApiModelProperty(value = "缴费周期")
    private Integer period;

    @ApiModelProperty(value = "新建日期")
    private LocalDateTime newDate;

    @ApiModelProperty(value = "用量")
    private Integer count;

    @ApiModelProperty(value = "备注")
    private String comment;
    @ApiModelProperty(value = "状态:1：已交0：未交")
    private String status;


}
